﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="HistoryPayment.aspx.cs" Inherits="provider_HistoryPayment" %>
<%@ Register Assembly="obout_Grid_NET" Namespace="Obout.Grid" TagPrefix="cc1" %>
<%@ Register TagPrefix="cc1" Namespace="Obout.Interface" Assembly="obout_Interface" %>
<%@ Register TagPrefix="oem" Namespace="OboutInc.EasyMenu_Pro" Assembly="obout_EasyMenu_Pro" %>
<%@ Register TagPrefix="obout" Namespace="OboutInc.Flyout2" Assembly="obout_Flyout2_NET"%>
<%@ Register src="../header.ascx" tagname="header" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Historia de pagos</title>
    
    <link href="../style/Style.css" rel="stylesheet" type="text/css" />
    <link href="./css/axesat.css" rel="stylesheet" type="text/css" />
    <link href="../js/shadowbox/shadowbox.css" rel="stylesheet" type="text/css" />        
    <script src="../js/shadowbox/shadowbox.js" type="text/javascript"></script>        
    <script src="../js/Axesat.js" type="text/javascript"></script>    
    
		<script type="text/javascript">
		    function exportToExcel() {
		        Grid1.exportToExcel();
		    }

		    function asignarColumnaSeleccionada(nombreColumna) {
		        document.getElementById('hdnColumnaSeleccionada').value = nombreColumna;
		    }
		</script>					   
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:HiddenField ID="hdnColumnaSeleccionada" runat="server" />
        <asp:HiddenField ID="hdnNIT" runat="server" />
 
   <table cellpadding="0" cellspacing="0">
    <tr>
        <td>            
            <uc1:header ID="header1" runat="server" />
        </td>
    </tr>
   
   <tr><td>
            <div class="menusupe">
                <ul>
                    <li class="overmenu"><a href="#">Últimos pagos</a></li>
                    <%--<li><a href="#">Certificados de Renta</a></li>--%>
                </ul>
            </div>
   
            <%--<img alt="" src="../images/titleAccountPM.jpg" 
                style="width: 750px; height: 25px" />--%>
                </td></tr>
        <tr><td>  
           
            &nbsp;</td></tr>
        <tr><td>  
           
            <asp:ImageButton ID="btnBack" runat="server" ImageUrl="../images/back.jpg" 
                onclick="btnBack_Click" />
            
            </td></tr>
        <tr><td>  <br />
        
                <cc1:Grid ID="grvDocumento" runat="server" FolderStyle="styles/black_glass" AutoGenerateColumns="False" 
                    Serialize="false"
                    EnableTypeValidation="false" AllowAddingRecords="false" 
                    AllowFiltering="false" AllowSorting="false"
                    PageSize="12" AllowPageSizeSelection="false"
                    CallbackMode="true" GenerateRecordIds="true" 
                    AllowMultiRecordSelection="true" Width="900px" 
                    onrowdatabound="grvDocumento_RowDataBound" >                    
                    <Columns>
                    <cc1:Column ID="Column4" DataField="numero_factura" runat="server" HeaderAlign="left" Width="15%">
                        <TemplateSettings HeaderTemplateID="TemplateHeaderNumeroFactura" />
                    </cc1:Column>
                    <cc1:Column ID="Column5" DataField="fecha_factura" runat="server" HeaderAlign="left" Wrap="true" Width="10%">                        
                        <TemplateSettings HeaderTemplateID="TemplateHeaderFechaFactura" />
                    </cc1:Column>                                        
                    <cc1:Column ID="Column2" DataField="valor_factura" HeaderText="" runat="server" HeaderAlign="left" Wrap="true" DataFormatString="{0:C2}" Width="15%" >
                        <TemplateSettings HeaderTemplateID="TemplateHeaderValorFactura" />
                    </cc1:Column>
                    <cc1:Column ID="Column6" DataField="tipo_documento" HeaderText="" runat="server" HeaderAlign="left" Width="8%">                    
                        <TemplateSettings HeaderTemplateID="TemplateHeaderTipoDocumento" />
                    </cc1:Column>
                    <cc1:Column ID="Column3" DataField="numero_documento" HeaderText="" runat="server" HeaderAlign="left" Wrap="true" Width="10%">
                        <TemplateSettings HeaderTemplateID="TemplateHeaderNumeroDocumento" />
                    </cc1:Column>
                    <cc1:Column ID="Column1" DataField="fecha_pago" HeaderText="" runat="server" HeaderAlign="left" Wrap="true" Width="10%">
                        <TemplateSettings HeaderTemplateID="TemplateHeaderFechaPago" />
                    </cc1:Column>
                    <cc1:Column ID="Column8" DataField="valor_documento" HeaderText="" runat="server" HeaderAlign="left" Wrap="true" DataFormatString="{0:C2}" Width="15%">
                        <TemplateSettings HeaderTemplateID="TemplateHeaderValorDocumento" />
                    </cc1:Column>                   
                    <cc1:Column ID="Column9" DataField="numero_documento2" HeaderText="" runat="server" HeaderAlign="left" Wrap="true" Width="12%" Align="center">
                        <TemplateSettings HeaderTemplateID="TemplateHeaderVerDocumento" TemplateId="TemplateItemVerDocumento" />
                    </cc1:Column>     
                    <cc1:Column ID="Column7" DataField="NUMERO_FACTURA2" HeaderText="" runat="server" HeaderAlign="left" Align="center" Width="15%">
                        <TemplateSettings HeaderTemplateID="TemplateHeaderNumeroFactura2" TemplateId="TemplateItemNumeroFactura2" />
                    </cc1:Column>
                                  
                                        
                    </Columns>
                    
                    <ExportingSettings ExportDetails="True" />                    

                    <TemplateSettings RowEditTemplateId="tplRowEdit" />
                    <LocalizationSettings AddLink="Nuevo" CancelAllLink="Cancelar todo" 
                        CancelLink="Cancelar" DeleteLink="Eliminar" EditLink="Editar" 
                        Filter_ApplyLink="Aplicar Filtro" Filter_HideLink="Ocultar filtro" 
                        Filter_RemoveLink="Quitar filtro" Filter_ShowLink="Mostrar filtro" 
                        FilterCriteria_Contains="Contiene" FilterCriteria_DoesNotContain="No contiene" 
                        FilterCriteria_EndsWith="Termina con" FilterCriteria_EqualTo="Igual a" 
                        FilterCriteria_GreaterThan="Mayor a" 
                        FilterCriteria_GreaterThanOrEqualTo="Mayor o igual a" 
                        FilterCriteria_IsEmpty="Vacio" FilterCriteria_IsNotEmpty="No vacio" 
                        FilterCriteria_IsNotNull="No nulo" FilterCriteria_IsNull="Nulo" 
                        FilterCriteria_NoFilter="Sin filtro" FilterCriteria_NotEqualTo="Diferente a" 
                        FilterCriteria_SmallerThan="Menor que" 
                        FilterCriteria_SmallerThanOrEqualTo="Menor o igual a" 
                        FilterCriteria_StartsWith="Comienza con" 
                        Grouping_GroupInformationNextPage=" (Mostrando XXXXX de YYYYY registros - This group is continued on the next page)" 
                        Grouping_GroupInformationPreviousNextPage=" (Mostrando XXXXX de YYYYY registros - This group was started on the previous page and continues on the next page)" 
                        Grouping_GroupInformationPreviousPage=" (Mostrando XXXXX de YYYYY registros - This group was started on the previous page)" 
                        LoadingText="Cargando..." ModifyLink="Modificar" 
                        NoRecordsText="No se encontraron registros" 
                        Paging_ManualPagingLink="Ir a la pagina »" Paging_OfText="de" 
                        Paging_PageSizeText="Registros por pagina" Paging_PagesText="Paginas:" 
                        Paging_RecordsText="Registros:" RemoveLink="Quitar" SaveAllLink="Guardar todo" 
                        SaveLink="Guardar" UpdateLink="Actualizar" />
                    <Templates>
                        <cc1:GridTemplate runat="server" ID="TemplateHeaderNumeroFactura">
                            <Template>                            
                                <div id="divHeaderFlyout1" onclick="asignarColumnaSeleccionada('numero_factura'); <%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout1'); <%=Flyout1.getClientID()%>.Open();">Número<br />factura</div>
                            </Template>
                        </cc1:GridTemplate>                            
                        <cc1:GridTemplate runat="server" ID="TemplateHeaderFechaFactura">                        
                            <Template>
                                <div id="divHeaderFlyout2" onclick="asignarColumnaSeleccionada('fecha_factura');<%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout2'); <%=Flyout1.getClientID()%>.Open();">Fecha<br />factura</div>
                            </Template>
                        </cc1:GridTemplate>                                                    
                        <cc1:GridTemplate runat="server" ID="TemplateHeaderValorFactura">                        
                            <Template>
                                <div id="divHeaderFlyout3" onclick="asignarColumnaSeleccionada('valor_factura'); <%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout3'); <%=Flyout1.getClientID()%>.Open();">Valor<br />factura</div>
                            </Template>
                        </cc1:GridTemplate>                                                                            
                        <cc1:GridTemplate runat="server" ID="TemplateHeaderTipoDocumento">
                            <Template>
                                <div id="divHeaderFlyout4" onclick="asignarColumnaSeleccionada('tipo_documento'); <%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout4'); <%=Flyout1.getClientID()%>.Open();">Tipo<br />documento</div>
                            </Template>
                        </cc1:GridTemplate>                                                                                                    
                        <cc1:GridTemplate runat="server" ID="TemplateHeaderNumeroDocumento">
                            <Template>
                                <div id="divHeaderFlyout5" onclick="asignarColumnaSeleccionada('numero_documento'); <%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout5');  <%=Flyout1.getClientID()%>.Open();">Número<br />documento</div>
                            </Template>
                        </cc1:GridTemplate>                        
                        <cc1:GridTemplate runat="server" ID="TemplateHeaderFechaPago">
                            <Template>
                                <div id="divHeaderFlyout5" onclick="asignarColumnaSeleccionada('fecha_pago'); <%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout5');  <%=Flyout1.getClientID()%>.Open();">Fecha<br />pago</div>
                            </Template>
                        </cc1:GridTemplate>                        
                        <cc1:GridTemplate runat="server" ID="TemplateHeaderValorDocumento">
                            <Template>
                                <div id="divHeaderFlyout5" onclick="asignarColumnaSeleccionada('valor_documento'); <%=Flyout1.getClientID()%>.AttachTo('divHeaderFlyout5');  <%=Flyout1.getClientID()%>.Open();">Valor<br />documento</div>
                            </Template>
                        </cc1:GridTemplate>                        
                        <cc1:GridTemplate runat="server" ID="TemplateHeaderVerDocumento">
                            <Template>
                                <div>Ver<br />documento</div>
                            </Template>
                        </cc1:GridTemplate>  
                        <cc1:GridTemplate runat="server" ID="TemplateItemVerDocumento">
                            <Template>                                
                                <asp:HyperLink ID="lnkVerDocumento" runat="server"><img src="../images/pdf.jpg" alt="0" border="0" /></asp:HyperLink>
                            </Template>
                        </cc1:GridTemplate>     
                        <cc1:GridTemplate runat="server" ID="TemplateHeaderNumeroFactura2">
                            <Template>
                                <div>Ver<br />factura</div>
                            </Template>
                        </cc1:GridTemplate>  
                        <cc1:GridTemplate runat="server" ID="TemplateItemNumeroFactura2">
                            <Template>                                
                                <asp:HyperLink ID="lnkVerFactura" runat="server"><img src="../images/pdf.jpg" alt="0" border="0" /></asp:HyperLink>
                            </Template>
                        </cc1:GridTemplate>                                                
                                                                   
                                                                                                                      
                    </Templates>

                </cc1:Grid>
        
        
        </td></tr></table>
    
    </div>
    
<obout:Flyout runat="server" ID="Flyout1" OpenEvent="NONE" CloseEvent="NONE" Position="BOTTOM_RIGHT">
    <table background="../images/fondoFlyout.jpg" style="border: 1px solid Gray; background-repeat:repeat; z-index:100; ">
        <tr>
            <td align="right">
                <img src="../images/close.jpg" border="0" alt="Cerrar filtros" onclick="<%=Flyout1.getClientID()%>.Close();" />
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:LinkButton ID="lnkAscendente" runat="server" onclick="lnkAscendente_Click">Ascendente</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:LinkButton ID="lnkDescendente" runat="server" onclick="lnkDescendente_Click">Descendente</asp:LinkButton>
            </td>
        </tr>        
        <tr>
            <td align="left">                
                Contiene: <asp:TextBox ID="txtContiene" runat="server" Width="90px"></asp:TextBox>
                <asp:ImageButton ID="btnBuscarGrilla" runat="server" ImageUrl="../images/view.gif" onclick="btnBuscarGrilla_Click" />
            </td>
        </tr>                
        <tr>
            <td align="left">
                <asp:LinkButton ID="lnkSinFiltro" runat="server" onclick="lnkSinFiltro_Click">Sin filtro</asp:LinkButton>
            </td>
        </tr>        
        
    </table>
</obout:Flyout>			
    
    
    </form>
</body>
</html>
